﻿namespace PropOnline.ViewModels.Shared
{
    using System.ComponentModel.DataAnnotations;
    using System.Web.Mvc;
    using PropOnline.Models;
    
    public abstract class BusquedaViewModelBase
    {
        public SelectList TipoPropiedadSelectList { get; set; }

        public SelectList ZonaSelectList { get; set; }

        public SelectList OperacionSelectList { get; set; }

        [EnumDataType(typeof(TipoPropiedad))]
        public TipoPropiedad? TipoPropiedad { get; set; }

        public int ZonaId { get; set; }
        
        public string ZonaNombre { get; set; }

        [EnumDataType(typeof(Operacion))]
        public Operacion? Operacion { get; set; }          
    }
}